import request from '@/utils/request'

// 查询便民服务列表
export function listHealthBmService(query) {
  return request({
    url: '/health/healthBmService/list',
    method: 'get',
    params: query
  })
}

// 查询便民服务详细
export function getHealthBmService(id) {
  return request({
    url: '/health/healthBmService/' + id,
    method: 'get'
  })
}

// 新增便民服务
export function addHealthBmService(data) {
  return request({
    url: '/health/healthBmService',
    method: 'post',
    data: data
  })
}

// 修改便民服务
export function updateHealthBmService(data) {
  return request({
    url: '/health/healthBmService',
    method: 'put',
    data: data
  })
}

// 删除便民服务
export function delHealthBmService(id) {
  return request({
    url: '/health/healthBmService/' + id,
    method: 'delete'
  })
}
